/*
 * @Author: your name
 * @Date: 2021-04-02 15:33:13
 * @LastEditTime: 2021-05-31 16:11:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-demo\app\router.js
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/info', controller.users.info);
  router.get('/list', controller.users.list);
  router.get('/getUser/:id/:gender', controller.users.getUser);
  router.get('/create', controller.users.create);
  
  require('./routes/book')(app);
  require('./routes/upload')(app);
  require('./routes/members')(app);
  require('./routes/auth')(app);
  require('./routes/goods')(app);
  require('./routes/users')(app);
  require('./routes/goodstype')(app);
};
